package com.weishu.core.service.impl;

import com.weishu.core.entity.TbSubway;
import com.weishu.core.mapper.TbSubwayMapper;
import com.weishu.core.service.ITbSubwayService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * 地铁Service业务层处理
 *
 * @author cuidk
 * @since 2021-10-19
 */
@Service
public class TbSubwayServiceImpl extends ServiceImpl<TbSubwayMapper, TbSubway> implements ITbSubwayService {

    @Autowired
    private TbSubwayMapper tbSubwayMapper;

    /**
     * 根据城市id查询寻地铁
     * @param province 城市id
     * @return
     */
    @Override
    public List<TbSubway> getsubway(Long province) {
        return tbSubwayMapper.getsubway(province);
    }
}
